package com.jic.point.mapper;
import java.util.List;
import java.util.Map;

import com.jic.point.model.entity.ConfActivityRuleDetailTemplate;
public interface ConfActivityRuleDetailTemplateMapper {
	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE插入数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	int insert (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE插入数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	int insertSelective (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE根据表对象数据修改数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	int updateByPrimaryKey (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE根据表对象数据修改数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	int updateByPrimaryKeySelective (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE根据id删除数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	int deleteByPrimaryKey (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE根据主键查询数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	ConfActivityRuleDetailTemplate selectByPrimaryKey (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE根据主键查询数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	List<ConfActivityRuleDetailTemplate> listPageBySelective (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * CONF_ACTIVITY_RULE_DETAIL_TEMPLATE查询数据
	 * @param confActivityRuleDetailTemplate 入参实体类
	 */
	List<ConfActivityRuleDetailTemplate>  selectBySelective (ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * 查询包含的场景
	 * @return
	 */
	List<ConfActivityRuleDetailTemplate> getByPrimaryKeySence();

	/**
	 * 通过Code字段 取消逻辑删除主表
	 * @return
	 */
	int deleteFlagTemplate(ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);

	/**
	 * 根据code修改
	 * @param confActivityRuleDetailTemplate
	 * @return
	 */
	int updateByCode(ConfActivityRuleDetailTemplate confActivityRuleDetailTemplate);


	/**
	 * 根据 SceneId 查询积分模板详细数据
	 */
	List<Map> selBySceneIdTemplate(ConfActivityRuleDetailTemplate request);
}
